<template>
  <div class="commission-view">
    <div class="commission-view__header">
      <h1 class="commission-view__title">佣金管理</h1>
    </div>
    <CommissionNavTabs />
    <div class="commission-view__content">
      <router-view />
    </div>
  </div>
</template>

<script lang="ts" setup>
import CommissionNavTabs from '@/components/agent/commission/CommissionNavTabs.vue';
// 佣金管理视图组件，作为子路由的容器
</script>

<style lang="scss" scoped>
.commission-view {
  padding: 24px;
  min-height: 100vh;
  background-color: #f8f9fa;

  &__header {
    margin-bottom: 24px;
  }

  &__title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-left: 16px;

    &::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 4px;
      height: 20px;
      background-color: #FF4757;
      border-radius: 2px;
    }
  }

  &__content {
    min-height: 500px;
  }
}
</style>
